package com.szrt.spring.ch06.student.service.impl;

import com.szrt.spring.ch06.student.service.StudentService;

public class StudentServiceImpl implements StudentService {
	
	public StudentServiceImpl(){
		System.out.println("调用StudentServiceImpl的构造方法...");
	}
	
	@Override
	public void save() {
		System.out.println("保存学生成功...");
	}
	
	
	public  void init(){
		System.out.println("调用init方法打开数据库连接....");
	}
	
	public  void destroy(){
		System.out.println("调用destroy方法关闭数据库连接....");
	}
}
